home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Jun 90 / MacApp.Tech$ 6⁄1⁄90 / 1367-Re Potential Failure-May90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  910 b   |  25 lines  |  [TEXT/GEOL]

  1. Item    6081755                         29-May-90        17:40PDT
  2.  
  3. From:   ROSENSTEIN1                     Rosenstein, Larry
  4.  
  5. To:     CDA0004                         VAR Shana Corp, Don Murphy,IVR
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Re: Potential Failure Problem
  10.  
  11. There's nothing wrong with a global procedure as a failure handler, or with
  12. calling CatchFailures from a global routine.
  13.  
  14. What the mechanism wasn't designed for was to call CatchFailures in one routine
  15. but call Success in another.  If a failure handler is "in effect" for the
  16. duration of one routine then everything should be fine.  This automatically
  17. solves the moving segment problem.
  18.  
  19. The more serious problem is that when a failure is caught the stack pointer is
  20. restored to the value at the time of CatchFailures, which will be garbage if
  21. the procedure that called CatchFailures has returned.
  22.  
  23. Larry
  24.  
  25.